#include<iostream>
#include <sys/time.h>

using namespace std;

int main()
{
  // 创建接收时间戳的结构体
  struct timeval time;
  gettimeofday(&time, nullptr);
  cout << time.tv_sec <<  "和 " << time.tv_usec << endl;
  return 0;
}
